package com.jxtc.enterprise.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Schema(description = "Admin 端提交业务人员复核订单所需要传递的参数")
@Getter
@Setter
@ToString
public class AuditCompanySettlementDTO {
    @Schema(description = "结算记录 ID", example = "26e7c8b17867fa08584f92e1638b8eba")
    @NotBlank(message = "结算记录 ID 不能为空")
    private String settleId;

    @Schema(description = "附加款项，单位为元", example = "200.5")
    @Min(value = 0, message = "金额不能小于 0")
    private String additionalMoney;

    @Schema(description = "扣款项，单位为元", example = "159.85")
    @Min(value = 0, message = "金额不能小于 0")
    private String deductionMoney;

    @Schema(description = "备注", example = "xxx")
    private String comment;

    @Schema(description = "审计操作结果，有效取值：agree同意，refuse 拒绝", example = "agree")
    @NotBlank(message = "审计操作字段不能为空")
    private String auditResult;
}
